import request from '@/utils/request'

export default {
    getRoleAll() {
        return request({
            url: `/system/role/getRoleAll`,
            method: 'get'
        })
    },

    getRoleList(page,pageSize,roleInfoVo){
        return request({
            url: `/system/role/getRoleList/${page}/${pageSize}`,
            method: 'get',
            params: roleInfoVo
        })
    },

    getRoleBingMenuIdById(id) {
        return request({
            url: `/system/role/getRoleBingMenuIdById/${id}`,
            method: 'get'
        })
    },

    updateRole(role){
        return request({
            url: `/system/role/updateRole`,
            method: 'post',
            data: role
        })
    },

    deleteRoleById(id){
        return request({
            url: `/system/role/deleteRoleById/${id}`,
            method: 'put'
        })
    }
}